/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2013 All Rights Reserved.
 */
package com.pingan.mobilegw.core.model.request;

/**
 * 单个请求体
 * 
 * @author jiadao
 * @version $Id: SingleRequestBody.java, v 0.1 2013-4-14 下午2:55:02 jiadao Exp $
 */
public class SingleRequestBody implements RequestBody {

    /** 请求id */
    private int    id = -1;

    /** 操作类型 */
    private String operationType;

    /** 请求的json数据 */
    private String requestData;

    /**
     * 默认构造函数
     */
    public SingleRequestBody() {
    }

    /**
     * @param operationType
     * @param requestData
     */
    public SingleRequestBody(String operationType, String requestData) {
        super();
        this.operationType = operationType;
        this.requestData = requestData;
    }

    /**
     * Getter method for property <tt>operationType</tt>.
     * 
     * @return property value of operationType
     */
    public String getOperationType() {
        return operationType;
    }

    /**
     * Setter method for property <tt>operationType</tt>.
     * 
     * @param operationType value to be assigned to property operationType
     */
    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }

    /**
     * Getter method for property <tt>requestData</tt>.
     * 
     * @return property value of requestData
     */
    public String getRequestData() {
        return requestData;
    }

    /**
     * Setter method for property <tt>requestData</tt>.
     * 
     * @param requestData value to be assigned to property requestData
     */
    public void setRequestData(String requestData) {
        this.requestData = requestData;
    }

    /**
     * Getter method for property <tt>id</tt>.
     * 
     * @return property value of id
     */
    public int getId() {
        return id;
    }

    /**
     * Setter method for property <tt>id</tt>.
     * 
     * @param id value to be assigned to property id
     */
    public void setId(int id) {
        this.id = id;
    }
}
